package com.wocao.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wocao.entity.ZyVisitor;
import com.wocao.service.ZyVisitorService;
import com.wocao.mapper.ZyVisitorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 */
@Service
public class ZyVisitorServiceImpl extends ServiceImpl<ZyVisitorMapper, ZyVisitor> implements ZyVisitorService {

    @Autowired
    private ZyVisitorMapper zyVisitorMapper;

    @Override
    public IPage<ZyVisitor> getZyVisitorAll(Long current, Long size, String visitorName, String visitorPhoneNumber, String visitorDate) {
        IPage<ZyVisitor> page = zyVisitorMapper.selectZyVisitorAll(new Page<ZyVisitor>(current, size), visitorName, visitorPhoneNumber, visitorDate);
        return page;
    }
}




